﻿/*****************************************************************//**
 * @file        FITKOCCViewAdaptorSketchShape.h
 * @brief       Adaptor for occ sketch 2d data.
 *  
 * @author      ChengHaotian (yeguangbaozi@foxmail.com)
 * @date        2025-03-31
 *********************************************************************/

#ifndef __FITKOCCVIEWADAPTORSKETCHSHAPE_H__
#define __FITKOCCVIEWADAPTORSKETCHSHAPE_H__

#include "FITKOCCViewAdaptorBase.h"

#include "FITKOCCGraphAdaptorAPI.h"

namespace Exchange
{
    /**
     * @brief       Graph object data adaptor for occ sketch 2d data.
     * @author      ChengHaotian (yeguangbaozi@foxmail.com)
     * @date        2025-03-31
     */
    class FITKOCCGRAPHADAPTORAPI FITKOCCViewAdaptorSketchShape : public FITKOCCViewAdaptorBase
    {
        // Regist
        FITKCLASS(Exchange, FITKOCCViewAdaptorSketchShape);

    public:
        /**
         * @brief       Constructor.
         * @author      ChengHaotian (yeguangbaozi@foxmail.com)
         * @date        2025-03-31
         */
        explicit FITKOCCViewAdaptorSketchShape() = default;

        /**
         * @brief       Destructor.
         * @author      ChengHaotian (yeguangbaozi@foxmail.com)
         * @date        2025-03-31
         */
        ~FITKOCCViewAdaptorSketchShape() = default;

        /**
         * @brief       Execute the data exchange.[override]
         * @return      Is OK
         * @author      ChengHaotian (yeguangbaozi@foxmail.com)
         * @date        2025-03-31
         */
        bool update() override;

    };

    // Regist sketch 2d adaptor
    Register2FITKViewAdaptorFactory(GeoSketchShapeOCC, Interface::FITKAbsGeoShapeAgent, FITKOCCViewAdaptorSketchShape);
}   // namespace Exchange

#endif // __FITKOCCVIEWADAPTORSKETCHSHAPE_H__